package bb.lanxing.device.sgdevcie.utils;

import com.tencent.connect.common.Constants;
import java.util.ArrayList;
import java.util.Locale;


public final class SGDeviceSettingSupportUtil {
    public static final int TYPE_AUTO_PAUSE = 2132020033;
    public static final int TYPE_BACKLIGHT = 2132018204;
    public static final int TYPE_BIKE_PROFILE = 2132018070;
    public static final int TYPE_GNSS_SYNC = 12;
    public static final int TYPE_KEYTONE = 2132018120;
    public static final int TYPE_LANGUAGE = 2132018220;
    public static final int TYPE_MAP = 2132020200;
    public static final int TYPE_ROUTEBOOK = 2132019664;
    public static final int TYPE_SUPPORT = 2132020317;
    public static final int TYPE_TEMPERATURE = 2132019940;
    public static final int TYPE_TIMEZONE = 2132018255;
    public static final int TYPE_UNITS = 2132018121;
    public static final int TYPE_USER_PROFILE = 2132018072;
    private static int deviceType;
    public static final Companion Companion = new Companion();
    private static final ArrayList<Integer> supportList = new ArrayList<>();
    private static String deviceModel = "";
    private static final String[] hoursArray = {"-12", "-11", "-10", "-09", "-08", "-07", "-06", "-05", "-04", "-03", "-02", "-01", "+00", "+01", "+02", "+03", "+04", "+05", "+06", "+07", "+08", "+09", "+10", "+11", "+12", "+13", "+14"};
    private static final String[] minsArray = {"00", Constants.VIA_REPORT_TYPE_WPA_STATE, "30", "45"};
/*    private static final int[] XOSSG_N5_SUPPORT_ARRAY = {R.string.device_common_profile_personal, C6937R.string.device_sprint_settings_backlight, C6937R.string.device_settings_key_tone, C6937R.string.st_auto_pause};
    private static final int[] XOSSG_N6_SUPPORT_ARRAY = {C6937R.string.device_common_profile_personal, C6937R.string.device_common_profile_bike, C6937R.string.device_sprint_settings_backlight, C6937R.string.device_settings_key_tone, C6937R.string.st_auto_pause, 12};
    private static final int[] XOSSG_N7_SUPPORT_ARRAY = {C6937R.string.device_common_profile_personal, C6937R.string.device_sprint_settings_backlight, C6937R.string.device_settings_unit, C6937R.string.device_settings_key_tone, C6937R.string.st_auto_pause, C6937R.string.sport_tag_current_temperature};
    private static final int[] XOSSG_N8_SUPPORT_ARRAY = {C6937R.string.device_common_profile_personal, C6937R.string.device_common_profile_bike, C6937R.string.device_sprint_settings_backlight, C6937R.string.device_settings_unit, C6937R.string.device_settings_key_tone, C6937R.string.st_auto_pause, C6937R.string.sport_tag_current_temperature, 12};
    private static final int[] X_LAB_N9_SUPPORT_ARRAY = {C6937R.string.device_common_profile_personal, C6937R.string.device_common_profile_bike, C6937R.string.device_sprint_settings_backlight, C6937R.string.device_settings_key_tone, C6937R.string.st_auto_pause};
    private static final int[] ROCK_BROS_R1_SUPPORT_ARRAY = {C6937R.string.device_common_profile_personal, C6937R.string.device_sprint_settings_backlight, C6937R.string.device_settings_key_tone, C6937R.string.st_auto_pause};
    private static final int[] CYCPLUS_SUPPORT_ARRAY = {C6937R.string.st_support};*/

    public static final class Companion {
/*        public *//* synthetic *//* Companion(DefaultConstructorMarker defaultConstructorMarker) {
            this();
        }*/

        private Companion() {
        }

        public final String[] getHoursArray() {
            return SGDeviceSettingSupportUtil.hoursArray;
        }

        public final String[] getMinsArray() {
            return SGDeviceSettingSupportUtil.minsArray;
        }

   /*     public final boolean isSupport(int i, String str, int i2) {
            checkDeviceSupportData(i, str);
            return checkIsSupport(i2);
        }*/
/*

        private final void checkDeviceSupportData(int i, String str) {
            if (i != 0 && str != null) {
                if (SGDeviceSettingSupportUtil.deviceType == i && Intrinsics.areEqual(SGDeviceSettingSupportUtil.deviceModel, str) && (!SGDeviceSettingSupportUtil.supportList.isEmpty())) {
                    Log.m228i("deviceType", "type == " + SGDeviceSettingSupportUtil.deviceType);
                    return;
                }
                makeSupportList(i, str);
                return;
            }
            Log.m226w("deviceType", "type == TYPE_UNKNOW || deviceModel == null");
        }
*/

        private final boolean checkIsSupport(int i) {
            if (SGDeviceSettingSupportUtil.supportList.isEmpty()) {
                return false;
            }
            return SGDeviceSettingSupportUtil.supportList.contains(Integer.valueOf(i));
        }
/*
        private final void makeSupportList(int i, String str) {
            SGDeviceSettingSupportUtil.supportList.clear();
            if (i != 17) {
                if (i == 32) {
                    SGDeviceSettingSupportUtil.supportList.addAll(ArraysKt.asList(SGDeviceSettingSupportUtil.X_LAB_N9_SUPPORT_ARRAY));
                } else if (i == 33) {
                    SGDeviceSettingSupportUtil.supportList.addAll(ArraysKt.asList(SGDeviceSettingSupportUtil.ROCK_BROS_R1_SUPPORT_ARRAY));
                }
            } else if (str != null) {
                if (str.length() > 0) {
                    Locale ROOT = Locale.ROOT;
                    Intrinsics.checkNotNullExpressionValue(ROOT, "ROOT");
                    String lowerCase = str.toLowerCase(ROOT);
                    Intrinsics.checkNotNullExpressionValue(lowerCase, "this as java.lang.String).toLowerCase(locale)");
                    if (Intrinsics.areEqual(lowerCase, XossModelUtil.XossGSerial.N5.getModel())) {
                        SGDeviceSettingSupportUtil.supportList.addAll(ArraysKt.asList(SGDeviceSettingSupportUtil.XOSSG_N5_SUPPORT_ARRAY));
                    } else {
                        Locale ROOT2 = Locale.ROOT;
                        Intrinsics.checkNotNullExpressionValue(ROOT2, "ROOT");
                        String lowerCase2 = str.toLowerCase(ROOT2);
                        Intrinsics.checkNotNullExpressionValue(lowerCase2, "this as java.lang.String).toLowerCase(locale)");
                        if (Intrinsics.areEqual(lowerCase2, XossModelUtil.XossGSerial.N6.getModel())) {
                            SGDeviceSettingSupportUtil.supportList.addAll(ArraysKt.asList(SGDeviceSettingSupportUtil.XOSSG_N6_SUPPORT_ARRAY));
                        } else {
                            Locale ROOT3 = Locale.ROOT;
                            Intrinsics.checkNotNullExpressionValue(ROOT3, "ROOT");
                            String lowerCase3 = str.toLowerCase(ROOT3);
                            Intrinsics.checkNotNullExpressionValue(lowerCase3, "this as java.lang.String).toLowerCase(locale)");
                            if (Intrinsics.areEqual(lowerCase3, XossModelUtil.XossGSerial.N7.getModel())) {
                                SGDeviceSettingSupportUtil.supportList.addAll(ArraysKt.asList(SGDeviceSettingSupportUtil.XOSSG_N7_SUPPORT_ARRAY));
                            } else {
                                Locale ROOT4 = Locale.ROOT;
                                Intrinsics.checkNotNullExpressionValue(ROOT4, "ROOT");
                                String lowerCase4 = str.toLowerCase(ROOT4);
                                Intrinsics.checkNotNullExpressionValue(lowerCase4, "this as java.lang.String).toLowerCase(locale)");
                                if (Intrinsics.areEqual(lowerCase4, XossModelUtil.XossGSerial.N8.getModel())) {
                                    SGDeviceSettingSupportUtil.supportList.addAll(ArraysKt.asList(SGDeviceSettingSupportUtil.XOSSG_N8_SUPPORT_ARRAY));
                                }
                            }
                        }
                    }
                }
            }
            SGDeviceSettingSupportUtil.deviceType = i;
        }*/
    }
}
